<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of testUtil
 *
 * @author prostar
 */
class actUtil extends CI_Util {

	public function getActInfo() {
		return __METHOD__;
		$db_config = array(
		    'type' => 'redis',
		    'sec' => 's1',
		    'dbkey' => 'test',
		);
		$this->load->model('player', $db_config);

		$this->player->set('utiltest', 'utiltestval');
		return $this->player->get('utiltest');
	}

	public function setList($key, $value, $ret = FALSE) {
		$db_config = array(
		    'type' => 'redis',
		    'sec' => 's1',
		    'dbkey' => 'test',
		);
		$this->load->db($db_config);
		$res = $this->db->push($key, $value);
		if ($ret) {
			return $this->db->pop($key);
		}
		return $res;
	}

}

?>
